/*
 * @Author: TANGB02 13233582+Ace-Tang@user.noreply.gitee.com
 * @Date: 2024-01-14 19:16:27
 * @LastEditors: TANGB02 13233582+Ace-Tang@user.noreply.gitee.com
 * @LastEditTime: 2024-03-15 10:44:57
 * @FilePath: \ycq\ycq\ycq1.0\src\router\routes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: TANGB02 13233582+Ace-Tang@user.noreply.gitee.com
 * @Date: 2024-01-14 19:16:27
 * @LastEditors: TANGB02 13233582+Ace-Tang@user.noreply.gitee.com
 * @LastEditTime: 2024-02-03 22:40:48
 * @FilePath: \vue02\project02\src\router\routes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("@/pages/home/home.vue"),
    meta: { title: "首页" },
    children: [
      // 二级
      {
        path: "animalDetails",
        name: "animalDetails",
        component: () => import("@/pages/animalDetails/animaldetails.vue"),
        meta: { title: "详情页" },
      },
      {
        path: "",
        name: "homeDefault",
        component: () => import("@/pages/default/homeDefault.vue"),
      },
      {
        path: "moreAnimals",
        name: "moreAnimals",
        component: () => import("@/pages/moreAnimals/moreAnimals.vue"),
        meta: { title: "领养猫猫" },
      },
      {
        path: "moreAnimals_2",
        name: "moreAnimals_2",
        component: () => import("@/pages/moreAnimals/moreAnimals_2.vue"),
        meta: { title: "领养猫猫" },
      },
      {
        path: "/search",
        name: "search",
        component: () => import("@/pages/search/search.vue"),
      },
      {
        path: "navDetails",
        name: "navDetails",
        component: () => import("@/pages/nav/layout.vue"),
        children: [
          // 三级
          {
            path: "",
            name: "about",
            component: () => import("@/pages/nav/about.vue"),
            meta: { title: "简介" },
          },
          {
            path: "latestNews",
            name: "latestNews",
            component: () => import("@/pages/nav/latestNews.vue"),
            meta: { title: "最新消息" },
          },
          {
            path: "news",
            name: "news",
            component: () => import("@/pages/nav/news.vue"),
          },
          {
            path: "lcommonSense",
            name: "lcommonSense",
            component: () => import("@/pages/nav/lcommonSense.vue"),
          },
          {
            path: "adoptMsg",
            name: "adoptMsg",
            component: () => import("@/pages/nav/adoptMsg.vue"),
          },
        ],
      },
    ],
  },
  {
    path: "/addApplication",
    name: "addApplication",
    component: () => import("@/pages/application/addApplication.vue"),
  },
  {
    path: "/test",
    name: "test",
    component: () => import("@/pages/manager/test.vue"),
  },
  {
    path: "/register",
    name: "register",
    component: () => import("@/pages/register/register.vue"),
  },

  {
    path: "/animalReview",
    name: "animalReview",
    component: () => import("@/pages/animalDetails/animalReview.vue"),
  },
  {
    path: "/manager",
    name: "manager",
    component: () => import("@/pages/manager/layout.vue"),
    meta: { title: "首页" },
    children: [
      // 二级路由
      {
        path: "managerDefault",
        name: "managerDefault",
        component: () => import("@/pages/manager/default.vue"),
        meta: { title: "默认页" },
      },
      {
        path: "notice",
        name: "notice",
        component: () => import("@/pages/manager/notice.vue"),
        meta: { title: "通知管理" },
      },
      // {
      //   path: "latestNews",
      //   name: "latestNews",
      //   component: () => import("@/pages/manager/latestNews.vue"),
      //   meta: { title: "最新消息" },
      // },

      // {
      //   path: "smallKnowns",
      //   name: "smallKnowns",
      //   component: () => import("@/pages/manager/smallKnowns.vue"),
      //   meta: { title: "小常识" },
      // },
      // {
      //   path: "aboutUs",
      //   name: "aboutUs",
      //   component: () => import("@/pages/manager/aboutUs.vue"),
      //   meta: { title: "关于我们" },
      // },
      {
        path: "userManage",
        name: "userManage",
        component: () => import("@/pages/manager/userManage.vue"),
        meta: { title: "用户管理" },
      },
      {
        path: "adaptMsg",
        name: "adaptMsg",
        component: () => import("@/pages/manager/adaptMsg.vue"),
        meta: { title: "领养信息" },
      },
      {
        path: "application",
        name: "application",
        component: () => import("@/pages/manager/application.vue"),
        meta: { title: "领养申请" },
      },
      {
        path: "animalManager",
        name: "animalManager",
        component: () => import("@/pages/manager/animalManager.vue"),
        meta: { title: "动物管理" },
      },
    ],
  },
  {
    path: "/personal",
    name: "personal",
    component: () => import("@/pages/personal/personal.vue"),
    meta: { title: "个人中心" },
    children: [
      // 二级路由
      {
        path: "",
        name: "personalDetails",
        component: () => import("@/pages/personal/personalDetails.vue"),
        meta: { title: "个人资料" },
      },
      {
        path: "applicationRecords",
        name: "applicationRecords",
        component: () =>
          import("@/pages/applicationRecords/applicationRecords.vue"),
        meta: { title: "领养记录" },
      },
      {
        path: "myReview",
        name: "myReview",
        component: () => import("@/pages/personal/myReview.vue"),
        meta: { title: "我的评论" },
      },
      {
        path: "setPersonal",
        name: "setPersonal",
        component: () => import("@/pages/personal/setPerson.vue"),
        meta: { title: "账号设置" },
        children: [
          // 三级路由
          {
            path: "setPwd",
            name: "setPwd",
            component: () =>
              import("../pages/personal/three-router/setPassword.vue"),
            meta: { title: "设置密码" },
          },
          {
            path: "setPhone",
            name: "setPhone",
            component: () =>
              import("@/pages/personal/three-router/setPhone.vue"),
            meta: { title: "修改手机" },
          },
        ],
      },
    ],
  },
];
export default routes;
